package com.ruoyi.merchant.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商家信息管理对象 wdm_merchant
 * 
 * @author ruoyi
 * @date 2025-07-28
 */
@Data
public class Merchant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商家ID（主键） */
    private Long merchantId;

    /** 商家名称（酒店名称） */
    @Excel(name = "商家名称", readConverterExp = "酒=店名称")
    private String merchantName;

    /** 法人姓名 */
    @Excel(name = "法人姓名")
    private String legalPerson;

    /** 营业执照照片URL */
    private String businessLicenseImg;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactPhone;

    /** 认证状态：0=待审核 1=已通过 2=已拒绝 */
    @Excel(name = "认证状态：0=待审核 1=已通过 2=已拒绝")
    private String certificationStatus;

    /** 认证失败原因 */
    @Excel(name = "认证失败原因")
    private String certificationFailReason;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 删除标志（0存在 2删除） */
    private String delFlag;

    /** 版本号（乐观锁） */
    private Long version;

    /** 商家编号 */
    private String merchantCode;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("merchantId", getMerchantId())
            .append("merchantName", getMerchantName())
            .append("legalPerson", getLegalPerson())
            .append("businessLicenseImg", getBusinessLicenseImg())
            .append("contactPhone", getContactPhone())
            .append("certificationStatus", getCertificationStatus())
            .append("certificationFailReason", getCertificationFailReason())
            .append("userId", getUserId())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("merchantCode", getMerchantCode())
            .toString();
    }

}
